📚 node [[python loops while loops|while loops]]
Welcome! Nobody has contributed anything to 'python loops while loops|while loops' yet. You can:
  • Write something in the document below!
    • There is at least one public document in every node in the Agora. Whatever you write in it will be integrated and made available for the next visitor to read and edit.
  • Write to the Agora from social media.
    • If you follow Agora bot on a supported platform and include the wikilink [[python loops while loops|while loops]] in a post, the Agora will link it here and optionally integrate your writing.
  • Sign up as a full Agora user.
    • As a full user you will be able to contribute your personal notes and resources directly to this knowledge commons. Some setup required :)
⥅ related node [[python loops while loops]]
⥅ related node [[week3 python for and while loops lab]]
⥅ node [[python-loops-while-loops]] pulled by Agora

Python Loops - While Loops

Go to the [[Python Week 3 Main Page]] or the [[Python - Main Page]] Also see the [[Programming Main Page]] or the [[Main AI Page]]

Also see [[Python Loops - For Loops]]

For code examples see the [[Week3 Python For and While Loops Lab]]

While Loops

A loop that executes so long as a condition is met.

A graphic representation of a while loop

Syntax

while medici_family == True:
	sc_recruit(medici)

Or, if you want a counter.

medici_family = [ ... ]

sc_recruit = []

i = 0

while medici_family[i]:
	sc_recruit.append(medici)
	i += 1
📖 stoas
⥱ context